home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / pgm_tool / lu62 / post_rcb.c < prev    next >
C/C++ Source or Header  |  1995-07-03  |  1KB  |  37 lines

  1.  /********************************************************
  2.  *                                                       *
  3.  *               P O S T _ R C B                         *
  4.  *                                                       *
  5.  *   Function : Searching for the RCB in wait chain      *
  6.  *    and post it for proceeding the verb processing.    *
  7.  *   Input    : pointer to RCB.                          *
  8.  *   Output   : if rcb was found, set lupost to 1,       *
  9.  *              otherwise do nothing.                    *
  10.  *                                                       *
  11.  * CopyRight 1995. Nicholas Poljakov all rights reserved.*
  12.  *                                                       *
  13.  ********************************************************/
  14. #include <rcb.h>
  15. #include <psp.h>
  16. #include <stdio.h>
  17.  
  18. struct psp psp_ini;
  19. extern char lupost;
  20.  
  21. post_rcb(p_rcb)
  22. struct rcb *p_rcb;
  23. {
  24.     struct rcb *t_rcb;
  25.  
  26.     if (psp_ini.wait_chain == NULL) {
  27.         return (0);
  28.     }
  29.     t_rcb = psp_ini.wait_chain;
  30.     if (t_rcb == p_rcb) {
  31.         lupost = 1;
  32.     }
  33.     return (0);
  34. }
  35.  
  36.  
  37.